package com.tuanzi.loan.web.configuration;

import javax.faces.context.FacesContext;
import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;

/**
 * @author Ray 2017/09/21
 */
public class JSFPhaseListener implements PhaseListener {

    private static final long serialVersionUID = -7760625493618048113L;

    @Override
    public void afterPhase(PhaseEvent event) {

    }

    @Override
    public void beforePhase(PhaseEvent event) {

    }

    @Override
    public PhaseId getPhaseId() {
        return FacesContext.getCurrentInstance().getCurrentPhaseId();
    }

}
